<template>
    <el-config-provider :locale="zhCn">
        <RouterView />
        <NaiveProviderContent />
    </el-config-provider>
</template>

<script setup>
/**
 *
 */
 import { h, defineComponent } from "vue";
//
import { ElConfigProvider } from "element-plus";
//
import zhCn from "element-plus/es/locale/lang/zh-cn";
//
import { useRouter } from 'vue-router';

/**
 * 挂载naive组件的方法至window, 以便在全局使用
 */
 function setupNaiveTools() {
  window.$router = useRouter();
 }
/**
 * 
 */
 const NaiveProviderContent = defineComponent({
  setup() {
    setupNaiveTools();
  },
  render() {
    return h("div");
  },
});
</script>
